package com.spzx.channel.service.impl;

import com.spzx.channel.service.CategoryService;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.product.api.domain.vo.CategoryVo;
import com.spzx.product.api.service.RemoteCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private RemoteCategoryService remoteCategoryService;


    @Override
    public List<CategoryVo> getCategoryTree() {
        List<CategoryVo>  categoryVoList= remoteCategoryService.getCategoryTreeList(SecurityConstants.INNER).getData();

        return categoryVoList;
    }
}
